<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘-后台管理系统</title>
    <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/bootstrap-validator/css/bootstrapValidator.min.css">
    <link rel="stylesheet" href="assets/nprogress/nprogress.css">
    <link rel="stylesheet" href="css/admin.css">
    <link rel="stylesheet" href="css/user.css">
</head>
<body>
    <aside class="aside_left">
        <div class="brand text-center">
            <a href="index.html">ITCAST</a>
        </div>
        <div class="user">
            <img src="images/default.png" alt="">
            <span>管理员</span>
        </div>
        <div class="menu">
            <ul>
                <li><a class="now" href="userManage.html"><span class="glyphicon glyphicon-user"></span> 用户管理</a></li>
                <li>
                    <a href="javascript:;"><span class="glyphicon glyphicon-list"></span> 分类管理</a>
                    <div class="child">
                        <a href="categoryFirst.html">一级分类</a>
                        <a href="categorySecond.html">二级分类</a>
                    </div>
                </li>
                <li><a href="productManage.html"><span class="glyphicon glyphicon-tags"></span> 商品管理</a></li>
            </ul>
        </div>
    </aside>
    <section>
        <nav>
                <a class="link_left" href="javascript:;"><span class="glyphicon glyphicon-align-justify"></span></a>
                <a class="link_right" href="javascript:;"><span class="glyphicon glyphicon-log-out"></span></a>
        </nav>
        <div class="container-fluid">
            <ol class="breadcrumb">
                <li><a href="#">管理系统</a></li>
                <li class="active">用户管理</li>
            </ol>
            <div class="ad_content">
                    <table class="table table-bordered">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>用户名</th>
                                    <th>手机号</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                
                            </tbody>
                    </table>
                    <ul id='paginator'></ul>
            </div>
        </div>
    </section>
    <div class="modal fade" id="optionModal">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title text-center">温馨提示</h4>
                </div>
                <div class="modal-body">
                    <p class="text-danger">
                        <span class="glyphicon glyphicon-info-sign"></span> 您确定要
                        <strong></strong>这个用户吗？</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary">确定</button>
                </div>
            </div>
        </div>
    </div>


    <script type="text/template" id="usermanage">
        <% for(var i = 0; i <rows.length;i++ ){%>
        <tr>
            <td><%=(page-1)*size+1+i%></td>
            <td><%=rows[i].username%></td>
            <td><%=rows[i].mobile%></td>
            <td><%=rows[i].isDelete==1?'正常':'禁用'%></td>
            <% if(rows[i].isDelete==1){%>
            <td><a href="javascript:;" data-id="<%=rows[i].id%>" data-name="<%=rows[i].username%>" class="btn btn-danger btn-sm">禁用</a></td>
            <% }else{%>
            <td><a href="javascript:;" data-id="<%=rows[i].id%>" data-name="<%=rows[i].username%>" class="btn btn-primary btn-sm">启用</a></td>
            <% }%>                
        </tr>
        <% }%>
    </script>
    <script src="assets/jquery/jquery.min.js"></script>
    <script src="assets/bootstrap/js/bootstrap.min.js"></script>
    <script src="assets/bootstrap-validator/js/bootstrapValidator.min.js"></script>
    <script src="assets/artTemplate/template-native.js"></script>
    <script src="assets/bootstrap-paginator/bootstrap-paginator.min.js"></script>
    <script src="assets/nprogress/nprogress.js"></script>
    <script src="js/admin.js"></script>
    <script src="js/usermanage.js"></script>
</body>
</html>